/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2023-03-22
 * Time: 8:49
 */
public class ThreadDemo2 {
    static class MyThread implements Runnable {
        @Override
        public void run() {
            while (true) {
                System.out.println("hello t");
            }
        }
    }
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        Thread thread = new Thread(myThread);
        thread.start();
        while (true) {
            System.out.println("hello main");
        }
    }
}
